<?php

namespace App\Kuafu\CouponPackage\Model;

use App\Kuafu\Base\Model\BaseModel;
use App\Kuafu\Base\Model\Traits\KfSoftDeletes;
use App\Kuafu\Coupon\Model\CouponModel;
use Illuminate\Database\Eloquent\Relations\HasOne;

class CouponPackageMappingModel extends BaseModel
{
    use KfSoftDeletes;

    protected $connection = 'mysql';
    protected $table      = 'coupon_package_mappings';
    protected $primaryKey = 'id';

    public function couponInfoRel(): HasOne
    {
        return $this->hasOne(CouponModel::class, 'id', 'couponId');
    }
}
